package com.wind.taobao.api.trade.shipping.rest
{
	import com.wind.taobao.api.trade.shipping.convert.LogisticCompanyConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.logisticcompanies.get Response
	 * @author fxy
	 *
	 */
	public class LogisticCompaniesGetResponse extends TaobaoResponse
	{
		public var companies:ArrayCollection;

		public function LogisticCompaniesGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initCompanies();
		}

		private function initCompanies():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("logistic_companies"))
					companies=LogisticCompanyConvert.convertLogisticCompanys(body["rsp"]["logistic_companies"]);
			}
		}

	}
}